package com.techstar.ats.codec.live.decoder;

import io.netty.buffer.ByteBuf;
import com.techstar.ats.codec.MessageDecoder;
import com.techstar.ats.dxp.live.rep.F02NetworkAliveStatus;

public enum F02NetworkAliveStatusDecoder implements MessageDecoder<F02NetworkAliveStatus> {
	INSTANCE;

	public F02NetworkAliveStatus create() {
		return new F02NetworkAliveStatus();
	}

	public void decode(ByteBuf buf, F02NetworkAliveStatus value) {
		value.line = buf.readUnsignedShort();
		value.status = buf.readBoolean();
	}
}
